package com.lj.universalframework.http

/**
 * Result必须加泛型 不然response的泛型就会被擦除!!
 * damn it
 */
sealed class Result<T> {
    class Start<T> : Result<T>()
    class Finally<T> : Result<T>()
    data class Response<T>(val response: T) : Result<T>()
    data class Error<T>(val exception: Exception) : Result<T>()
}